package com.oxbix.spanlogistics.share;

import android.app.Activity;

import com.oxbix.spanlogistics.share.tencent.TencentShareHelper;


/**
 * Created by chen on 18/1/10.
 */

public class ShareHelper {

    private static ShareHelper mInstance;
    private static Activity mAct;

    private ShareHelper() {

    }

    public static synchronized ShareHelper getInstance() {
        if (mInstance == null) {
            mInstance = new ShareHelper();
        }
        return mInstance;
    }

    public ShareHelper init(Activity activity) {
        this.mAct = activity;
        TencentShareHelper.getInstace().init(mAct);
        return this;
    }


    public void shareQQ(ShareBean shareBean) {
        TencentShareHelper.getInstace().shareQQ(shareBean);
    }

    public void shareQQZone(ShareBean shareBean){
        TencentShareHelper.getInstace().shareToQZone(shareBean);
    }

    public void shareWechat(ShareBean shareBean){
        TencentShareHelper.getInstace().shareToWechat(shareBean,0);
    }

    public void shareWechatCirlcle(ShareBean shareBean){
        TencentShareHelper.getInstace().shareToWechat(shareBean,1);
    }

}
